package com.ihmp.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ihmp.dao.IProductInRoomPriceHistoryDAO;
import com.ihmp.model.TProductInRoomPriceHistory;

@Service
@Transactional
public class CProductInRoomPriceHistoryService implements IProductInRoomPriceHistoryService{
	@Autowired
	private IProductInRoomPriceHistoryDAO dao;

	public void saveOrUpdate(TProductInRoomPriceHistory productPriceHistory) {
		dao.saveOrUpdate(productPriceHistory);
	}

	public void delete(TProductInRoomPriceHistory productPriceHistory) {
		dao.delete(productPriceHistory);
	}

	public TProductInRoomPriceHistory get(Integer id) {
		return dao.get(id);
	}

	public List<TProductInRoomPriceHistory> list() {
		return dao.list();
	}

	public List<TProductInRoomPriceHistory> list(int page, int recordPerPage) {
		return dao.list(page, recordPerPage);
	}
}
